import request from 'src/utils/request'

// 首页 物业首页
export function statisticsBase(data) {
    return request({
        url: '/resource/statistics/base',
        method: 'post',
        data
    })
}

// 首页 物业首页柱状图
export function statisticsBaseAppletUp(data) {
    return request({
        url: '/resource/statistics/applet/up',
        method: 'post',
        data
    })
}

// 首页 物业首页工作人员数
export function workerCount(data) {
    return request({
        url: '/serve/worker/count',
        method: 'post',
        data
    })
}

// 首页 积分兑换统计 饼图 内圈
export function pointExpend(data) {
    return request({
        url: '/point/statistics/point/expend',
        method: 'post',
        data
    })
}

// 首页 积分兑换统计 饼图 外圈
export function pointExpendRate(data) {
    return request({
        url: '/point/statistics/point/expend/rate',
        method: 'post',
        data
    })
}
// 首页 积分兑换统计 折现
export function pointExpendLine(data) {
    return request({
        url: '/point/statistics/point/expend/line',
        method: 'post',
        data
    })
}


// 首页 积分发放统计 饼图 内圈
export function pointIncomeRate(data) {
    return request({
        url: '/point/statistics/point/income/rate',
        method: 'post',
        data
    })
}


// 首页 积分发放统计 饼图 外圈
export function pointIncome(data) {
    return request({
        url: '/point/statistics/point/income',
        method: 'post',
        data
    })
}

// 首页 积分发放统计 积分数量和次数统计
export function pointAct(data) {
    return request({
        url: '/point/statistics/point/act',
        method: 'post',
        data
    })
}

// 首页 积分发放统计 折现
export function pointIncomeLine(data) {
    return request({
        url: '/point/statistics/point/income/line',
        method: 'post',
        data
    })
}


// 首页 待处理统计
export function orderPending(data) {
    return request({
        url: '/serve/order/pending',
        method: 'post',
        data
    })
}

// 首页 活动
export function unCheckCount(data) {
    return request({
        url: '/point/activity/unCheckCount',
        method: 'post',
        data
    })
}